/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity;

import java.io.Serializable;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;

/**
 *
 * @author jamie
 */
@Entity
public class PortalDescriptionLocale implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    private String locale;
    private String localeId;
    private String bizName;
    private String stakeholderDesc;
    private String imgCaption;
    
    @ManyToOne
    private StakeholderEntity stakeholder;
    
    
    public PortalDescriptionLocale() {
        
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof PortalDescriptionLocale)) {
            return false;
        }
        PortalDescriptionLocale other = (PortalDescriptionLocale) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "entity.PortalDescriptionLocale[ id=" + id + " ]";
    }

    /**
     * @return the locale
     */
    public String getLocale() {
        return locale;
    }

    /**
     * @param locale the locale to set
     */
    public void setLocale(String locale) {
        this.locale = locale;
    }

    /**
     * @return the bizName
     */
    public String getBizName() {
        return bizName;
    }

    /**
     * @param bizName the bizName to set
     */
    public void setBizName(String bizName) {
        this.bizName = bizName;
    }

    /**
     * @return the stakeholderDesc
     */
    public String getStakeholderDesc() {
        return stakeholderDesc;
    }

    /**
     * @param stakeholderDesc the stakeholderDesc to set
     */
    public void setStakeholderDesc(String stakeholderDesc) {
        this.stakeholderDesc = stakeholderDesc;
    }

    /**
     * @return the imgCaption
     */
    public String getImgCaption() {
        return imgCaption;
    }

    /**
     * @param imgCaption the imgCaption to set
     */
    public void setImgCaption(String imgCaption) {
        this.imgCaption = imgCaption;
    }

    /**
     * @return the stakeholder
     */
    public StakeholderEntity getStakeholder() {
        return stakeholder;
    }

    /**
     * @param stakeholder the stakeholder to set
     */
    public void setStakeholder(StakeholderEntity stakeholder) {
        this.stakeholder = stakeholder;
    }

    /**
     * @return the localeId
     */
    public String getLocaleId() {
        return localeId;
    }

    /**
     * @param localeId the localeId to set
     */
    public void setLocaleId(String localeId) {
        this.localeId = localeId;
    }
    
}
